package com.lc.demo.mapper;

import com.lc.demo.bean.Goods;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.BaseMapper;

import java.util.List;

/**
 * @Author: sakila
 * @Date: 2022/03/06/23:34
 * @Description:
 */
public interface GoodsMapper  extends BaseMapper<Goods> {


    @Select("select * from t_goodsinfo order by sales desc")
    List<Goods> selectAllOrderbySales();

    @Select("select * from t_goodsinfo order by up_date desc")
    List<Goods> selectAllOrderbyTime();
}
